$(document).ready(function(){
	function showAlert(message,alerttype) {
		document.getElementById("alert_placeholder").innerHTML = '<div id="alertdiv" class="alert ' +  alerttype + '"><a class="close" data-dismiss="alert">×</a><span>'+message+'</span></div>';
		//$('#alert_placeholder').append('<div id="alertdiv" class="alert ' +  alerttype + '"><a class="close" data-dismiss="alert">×</a><span>'+message+'</span></div>')
		setTimeout(function() { // this will automatically close the alert and remove this if the users doesnt close it in 5 secs
			$("#alertdiv").remove();
		}, 5000);
	}
	
	$(function(){
		$(".closeTop").click(function(){
			window.alert("This will restart the game");
		});
	}); 
	
});